﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ET;
using Marx;

namespace Demo
{
    [ObjectSystem]
    public class TemplateLoaderAwakeSystem : AwakeSystem<TemplateLoaderComponent>
    {
        public override void Awake(TemplateLoaderComponent self)
        {
            self.LoadTemplates();
        }
    }

    public class TemplateLoaderComponent : Entity, IAwake
    {
        public void LoadTemplates()
        {
            ConfigLoader.Instance.LoadTemplateBegin();

            //TODO: Load All Templates
            //

            ConfigLoader.Instance.LoadTemplateEnd();
        }
    }
}
